const {client} = require('./elastic')

module.exports.save = async ({actor, verb, content, key }) => {
	client.index({
		index: 'behavior',
		type: 'b',
		body: {
			actor,
			verb,
			content,
			key,
			updated: Date.now(),
		}
	});
}